package com.yl.chainStore.entity.sick

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.yl.chainStore.entity.sick.SickMedicalHistory
import com.yl.common.annotation.NoArg
import com.yl.common.getContext
import java.util.*

/**
 * <p>
 *
 * </p>
 *
 * @author cxw
 * @since 2021-07-10
 */
@NoArg
@TableName("sick_customer_image")
data class SickCustomerImage(

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	var id: Long,

	/**
	 * 路径
	 */
	@TableField("url")
	var url: String,

	/**
	 * 名称
	 */
	@TableField("name")
	var name: String,

	/**
	 * 备注
	 */
	@TableField("remark")
	var remark: String? = null,

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	var createTime: Date = Date(),

	/**
	 * 创建人id
	 */
	@TableField("create_user_id")
	var createUserId: Long = getContext().subCompanyId,

	/**
	 * 关联客户id
	 */
	@TableField("customer_id")
	var customerId: Long,

	/**
	 * 关联病历
	 */
	@TableField("medical_history_id")
	var medicalHistoryId: Long ?= null,

	/**
	 * 部门id
	 */
	@TableField("dept_id")
	var deptId:Long = getContext().subCompanyId,

	/**
	 * 公司id
	 */
	@TableField("company_id")
	var companyId :Long = getContext().companyId,

	/**
	 * 类型 （字典）
	 */
	@TableField("type_id")
	var typeId:Long,

	/**
	 * 本地路径
	 */
	@TableField("local_path")
	var localPath:String?= null,
	)
